Some pages of the aspcms member center have defects in user verification. After modifying the cookie, you can submit it to reset the account information of any user.'Member/reg. aspDim action: action = getform ("action", "get ")If action = "reg" thenAddUser ()Elseif action = "editpass" thenEditUser ()ElseEchoContent ()End if'Row 3-10 accepts a get request. If the action is editpass, The editUser process is executed.Sub editUser www.2cto.comDim LoginNa
: 'textfield ', // set it to the text input box type anchor: '123 '},{ FieldLabel: 'Financial company transitional return payment income (principal) ', name: 'sf _ rfd_fi_prcpl_acct', xtype: 'textfield ', // set it to text input box type anchor: '000000'}]}); // initialization form initForm (title, secondForm, record, function (sWindow) {if (! SecondForm. form. isValid () {Ext. messageBox. alert ("prompt", "Please enter the correct data"); return;} var protocolType = secondForm.
', // set it to the text input box type anchor: '123 '},{ FieldLabel: 'Financial company transitional return payment income (principal) ', name: 'sf _ rfd_fi_prcpl_acct', xtype: 'textfield ', // set it to text input box type anchor: '000000'}]}); // initialization form initForm (title, secondForm, record, function (sWindow) {if (! SecondForm. form. isValid () {Ext. messageBox. alert ("prompt", "Please enter the correct data"); return;} var protocolType = secondForm.
Copy Code code as follows:
' Get parameter values
Function GetForm (Element,ftype)
Select Case Ftype
Case "Get"
Getform=trim (Request. QueryString (Element))
Case "POST"
Getform=trim (Request. Form (Element))
Case "both"
If Isnul (request. QueryString (Element)) then Getform=trim (request. Form (Element)
urls.py configuration file for the project
From message.views import GetForm
Urlpatterns = [
URL (r ' ^admin/', admin.site.urls),
URL (r ' ^form/$ ', getform)
]
This is the original, in the HTML we introduced to:form action="/form/" method="post" class="smart-green">The above writing is dead, but if we want to modify the URL later, we need each HTML file to change the URL
,Displaymsg: 'display records from {0} to {1}, total records from {2 ',Emptymsg: 'No records ',Forcefit: True}),Tbar: New Ext. toolbar (['-',{Text: "add ",Handler: function (){VaR fm = createform ();VaR win = new Ext. Window ({Title: 'add user ',Modal: True,Width: 400,Buttonalign: 'center ',Items: [FM],Buttons :[{Text: 'save ',Handler: function (){If (FM. getform (). isvalid ()){FM. getform (). Submit ({URL
the same.Items: form1, // indicates which form to loadModal: true, // set it to a modal window. Otherwise, the underlying webpage can still be operated.Buttons :[{Text: 'send', handler: function () {alert ('send ');}},{Text: 'exit ',Handler: function () {win. hide ();}}]});
3. Define the operation function first:[Javascript]Function AddRecord (){Form1.getForm (). reset (); // restore to the form definition.Win. show ();}Function EditRecord (){Var row
value, After the age change, automatically inquires some things and so on; because the SetValue function does not trigger the Change event, age changes do not query; This can be invoked to trigger a setvaluewithevent event; (This estimate that we use less, after all, not so many linkage)
New Ext.form.formpanel { ID: ' Reportform ', items: [{ {id: ' 001 '}, {id: ' 002 '}, {id: ' 0 "}, {ID:" 004 "}, {id:" 005 "} } }),
//ext.getcmp (" Reportform ").
'hide'Width: 500,Height: 500,MinWidth: 300,MinHeight: 200,Maximizable: true, // whether to display the maximize buttonLayout: 'fit ',Plain: true, // you can force the background color of the form to be the same.Items: form1, // indicates which form to loadModal: true, // set it to a modal window. Otherwise, the underlying webpage can still be operated.Buttons :[{Text: 'send', handler: function () {alert ('send ');}},{Text: 'exit ',Handler: function () {win. hide ();}}]});
3. Define the operatio
: 'select the reason for rejection :',BoxLabel: 'This table is not complete. ',Name: 'integration ',InputValue: '1'},{Name: 'correct ',BoxLabel: 'This table is incorrect. ',InputValue: '1'}]}],Buttons :[{Text: 'confirmed', handler: function (){// If the integrity and accuracy information is obtained, the value 1 is not 0.If (fp. getForm (). isValid ()){Console. log (fp. getForm (). findField ('integrity').
', modal:true, Plain:true, resizable:false, items:[{ xtype: ' form ', items:[{ //... }], button:[{ text: ' Login ', handler:function () { }}]}) }); In this code, we created a window and then added a form to the window. Finally, a button is added. Button's handler, we define a function. Next, we add code to this function.
var form = this.up (' form '). GetForm ();
var form = this.up (' form ')
:[Javascript]OnReset: function (){Var me = this;Me. form. getForm (). reset ();If (me. form. items. items [0]) {Me. form. items. items [0]. focus (true, 10 );}Me. onRefrehImage ();}In the code, you should note that the code for obtaining the first text field in the form, because after the form is instantiated, the items attribute points to the MixedCollection instance, because the text automatic object can be found in its items.Next, the onLogin metho
There are two ways to modify extjs: 1. Direct loading on the foreground; 2. Remote Loading through the background
1. Direct loading: method form. getform (). loadrecord ();
When an application is required, all data on the page already exists. For example, if a row of gridpanel is selected, this row record is directly transferred to the formpanel page, which can be directly loaded.
2. backend loading: method form.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.